Ext.define('Monitor.view.RecordGrid', {
	extend : 'Ext.grid.Panel',
	
	alias : 'widget.recordgrid',
	
    
    
    initComponent : function() {
            // Pass in a column model definition
            // Note that the DetailPageURL was defined in the record definition but is not used
            // here. That is okay.
            this.columns = [
                {
                	text: "createDate",
                	flex: 1, 
                	dataIndex: 'createDate',
            		listeners : {
	                	columnshow : function(containner, column, eOpts) {
							console.log(column);	                		
	                	}
            		}
                },
                {text: "cpu", width: 120, dataIndex: 'cpu'},
                {text: "usedMenory", width: 120, dataIndex: 'usedMenory'},
                {text: "freeMenory", width: 120, dataIndex: 'freeMenory'},
                {text: "networkSend", width: 120, dataIndex: 'networkSend'},
                {text: "networkRecieve", width: 120, dataIndex: 'networkRecieve'},
                {text: "diskRead", width: 120, dataIndex: 'diskRead'},
                {text: "diskWrite", width: 120, dataIndex: 'diskWrite'}
            ];
            // finally call the superclasses implementation
            this.callParent();
        }
    });
